<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
	  xmlns:c="http://java.sun.com/jstl/core"
	  xmlns:a4j="http://richfaces.org/a4j"
      xmlns:rich="http://richfaces.org/rich"
      xmlns:sec="http://www.springframework.org/security/facelets/tags"
	  xmlns:sf="http://www.springframework.org/tags/faces">
	  
<f:view contentType="text/html" encoding="UTF-8">
<f:loadBundle basename="messages" var="msg"/>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title>GDT Application</title>
	
	<sf:includeStyles/>
	<sf:resourceGroup>
		<sf:resource path="/css/grids-min.css"/>
		<sf:resource path="/css/fonts-min.css"/>
	</sf:resourceGroup>
	<sf:resource path="/css/custom.css"/>
</head>

<body>
<div id="doc3">
	<div id="hd">
		<ui:insert name="header">
			<div id="topHeader">
				<div class="yui-gf">
					<div class="yui-u first">
						<span>
							<h:outputText value="${msg.welcome} ${currentUser.name} "  rendered="${!empty currentUser.name}" />
						</span>
					</div>
					<div class="yui-u align-right">
						<div id="topMenu">
							<h:outputLink value="${request.contextPath}/account">${msg.myaccount}</h:outputLink> |
							<sec:ifAnyGranted roles="ROLE_ADMIN"><h:outputLink value="${request.contextPath}/group">${msg.mygroup}</h:outputLink> |</sec:ifAnyGranted>
							<h:outputLink value="${request.contextPath}/logout" rendered="${!empty currentUser.name}" >${msg.logout}</h:outputLink>
						</div>
					</div>
				</div>
			</div>
			<div id="mainMenu">
				<ul>
					<sec:ifAnyGranted roles="ROLE_ADMIN"><li id="menuDashboards"><h:outputLink value="${request.contextPath}/dashboards">${msg.title_dashboards}</h:outputLink></li></sec:ifAnyGranted>
					<li id="menuProjects"><h:outputLink value="${request.contextPath}/projects">${msg.title_project}</h:outputLink></li>
					<li id="menuMembers"><h:outputLink value="${request.contextPath}/members">${msg.title_member}</h:outputLink></li>
					<li id="menuClients"><h:outputLink value="${request.contextPath}/clients">${msg.title_client}</h:outputLink></li>
					<li id="menuAnnouncements"><h:outputLink value="${request.contextPath}/announcements">${msg.title_announcement}</h:outputLink></li>
					<sec:ifAnyGranted roles="ROLE_ADMIN"><li id="menuReports"><h:outputLink value="${request.contextPath}/reports">${msg.title_reports}</h:outputLink></li></sec:ifAnyGranted>
				</ul>
				<div style="clear: both;" />
			</div>
		</ui:insert>
	</div>
	<div id="bd">
		<ui:insert name="main">Default main content</ui:insert>
	</div>
	<div id="ft">
		<a href="http://www.springframework.org">Powered by Amador</a>
	</div>
</div>
</body>
</f:view>
</html>